package com.qa.dao;

import com.qa.pojo.Download;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface DownloadMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Download record);

    Download selectByPrimaryKey(Integer id);

    List<Download> selectAll();

    int updateByPrimaryKey(Download record);

    List<Download> selectAllByStatus(String downloadName);

    List<Download> getByEmail(String email);

    int getCount(@Param("beginTime") String beginTime, @Param("endTime") String endTime);

    List<Download> getAllDownload(String keyword);
}